const instance = axios.create({
    baseURL: 'http://47.119.134.71:8080/',

    headers: {
        'Content-Type': 'text/plain;charset=UTF-8'
    }
})

function checkLogin() {

    instance({
        method: 'get',
        url: 'api/user/getIdBySession',

    }).then(res => {
        app.user_id = res.data.data.user_id
        app.user_name = res.data.data.user_name
        console.log(res)


    }).catch(err => {
        console.log(err);
    })


}